package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 门票订单信息表
 * @TableName bs_order_info
 */
@TableName(value ="bs_order_info")
@Data
public class BsOrderInfo extends BaseEntity implements Serializable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Long orderId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 景区ID
     */
    private Long jingquId;

    /**
     * 订单验证码
     */
    private String orderCode;

    /**
     * 订单二维码(base64编码)
     */
    private String orderPictureCode;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单日期
     */
    private Date orderDate;

    /**
     * 订单支付状态(0未支付，1已支付)
     */
    private Integer orderPayStatus;

    /**
     * 订单评价状态(0未评价，1已评价)
     */
    private Integer orderJudgeStatus;

    /**
     * 订单使用状态(0待入园，1已入园，2已过期，3已取消)
     */
    private Integer orderUseStatus;

    @ApiModelProperty(value = "入园时间")
    private Date orderEnterTime;

    /**
     * 订单详情
     */
    @TableField(exist = false)
    private List<BsOrderDetails> orderDetails;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}